package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class AddOriginalMethodSpecification implements AlterTypeAction {

    private int beginIndex;
    private int endIndex;
    private OriginalMethodSpecification originalMethodSpecification;

    public AddOriginalMethodSpecification(int beginIndex,
                                          OriginalMethodSpecification originalMethodSpecification) {
        this.beginIndex = beginIndex;
        this.endIndex = originalMethodSpecification.getEndIndex();
        this.originalMethodSpecification = originalMethodSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public OriginalMethodSpecification getOriginalMethodSpecification() {
        return originalMethodSpecification;
    }

}
